package com.itheima.mapper;

import com.itheima.domain.Role;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface RoleMapper {

    @Select("select * from sys_role")//查询所有
    List<Role> findAll();

    @Insert("insert into sys_role values(#{id},#{roleName},#{roleDesc})")
    public void save(Role role);
}
